home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 6 / QRZ Ham Radio Callsign Database - Volume 6.iso / pc / files / mac / varilogs.hqx / Logs / Logging Stacks USA / Roster / background_2619.txt < prev    next >
Encoding:
Text File  |  1987-12-15  |  14.9 KB  |  639 lines

  1. -- background: 2619 from stack: in
  2. -- bmap block id: 3275
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on import
  8.   repeat for the number of cards
  9.     get field "first name"
  10.     if it is not empty then
  11.       put it into field "name"
  12.       put space after field "name"
  13.     end if
  14.     get field "last name"
  15.     if it is not empty then
  16.       put it after field "name"
  17.     end if
  18.     go to next card
  19.   end repeat
  20. end import
  21.  
  22.  
  23.  
  24. -- part 9 (button)
  25. -- low flags: 00
  26. -- high flags: 0000
  27. -- rect: left=166 top=280 right=303 bottom=192
  28. -- title width / last selected line: 0
  29. -- icon id / first selected line: 1014 / 1014
  30. -- text alignment: 1
  31. -- font id: 0
  32. -- text size: 12
  33. -- style flags: 0
  34. -- line height: 16
  35. -- part name: Prev
  36. ----- HyperTalk script -----
  37. on mouseUp
  38.   visual effect wipe left
  39.   go to prev card
  40. end mouseUp
  41.  
  42.  
  43.  
  44. -- part 8 (button)
  45. -- low flags: 00
  46. -- high flags: 0000
  47. -- rect: left=201 top=280 right=303 bottom=226
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 1013 / 1013
  50. -- text alignment: 1
  51. -- font id: 0
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: Next
  56. ----- HyperTalk script -----
  57. on mouseUp
  58.   visual effect wipe right
  59.   go to next card
  60. end mouseUp
  61.  
  62.  
  63.  
  64. -- part 17 (field)
  65. -- low flags: 00
  66. -- high flags: 0000
  67. -- rect: left=40 top=49 right=68 bottom=128
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 0 / 0
  70. -- text alignment: 0
  71. -- font id: 128
  72. -- text size: 12
  73. -- style flags: 256
  74. -- line height: 16
  75. -- part name: Call
  76.  
  77.  
  78. -- part 26 (field)
  79. -- low flags: 00
  80. -- high flags: 0000
  81. -- rect: left=248 top=50 right=69 bottom=297
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 0 / 0
  84. -- text alignment: 0
  85. -- font id: 128
  86. -- text size: 12
  87. -- style flags: 256
  88. -- line height: 16
  89. -- part name: call district
  90.  
  91.  
  92. -- part 38 (field)
  93. -- low flags: 00
  94. -- high flags: 0000
  95. -- rect: left=45 top=71 right=90 bottom=337
  96. -- title width / last selected line: 0
  97. -- icon id / first selected line: 0 / 0
  98. -- text alignment: 0
  99. -- font id: 3
  100. -- text size: 12
  101. -- style flags: 0
  102. -- line height: 16
  103. -- part name: name
  104.  
  105.  
  106. -- part 21 (field)
  107. -- low flags: 00
  108. -- high flags: 0000
  109. -- rect: left=61 top=94 right=112 bottom=354
  110. -- title width / last selected line: 0
  111. -- icon id / first selected line: 0 / 0
  112. -- text alignment: 0
  113. -- font id: 3
  114. -- text size: 12
  115. -- style flags: 0
  116. -- line height: 16
  117. -- part name: address
  118.  
  119.  
  120. -- part 22 (field)
  121. -- low flags: 00
  122. -- high flags: 0000
  123. -- rect: left=42 top=118 right=138 bottom=192
  124. -- title width / last selected line: 0
  125. -- icon id / first selected line: 0 / 0
  126. -- text alignment: 0
  127. -- font id: 3
  128. -- text size: 12
  129. -- style flags: 0
  130. -- line height: 16
  131. -- part name: city
  132.  
  133.  
  134. -- part 23 (field)
  135. -- low flags: 00
  136. -- high flags: 0000
  137. -- rect: left=230 top=118 right=138 bottom=264
  138. -- title width / last selected line: 0
  139. -- icon id / first selected line: 0 / 0
  140. -- text alignment: 0
  141. -- font id: 3
  142. -- text size: 12
  143. -- style flags: 0
  144. -- line height: 16
  145. -- part name: state
  146.  
  147.  
  148. -- part 24 (field)
  149. -- low flags: 00
  150. -- high flags: 0000
  151. -- rect: left=289 top=118 right=136 bottom=355
  152. -- title width / last selected line: 0
  153. -- icon id / first selected line: 0 / 0
  154. -- text alignment: 0
  155. -- font id: 3
  156. -- text size: 12
  157. -- style flags: 0
  158. -- line height: 16
  159. -- part name: zip
  160.  
  161.  
  162. -- part 25 (field)
  163. -- low flags: 00
  164. -- high flags: 0000
  165. -- rect: left=85 top=138 right=155 bottom=200
  166. -- title width / last selected line: 0
  167. -- icon id / first selected line: 0 / 0
  168. -- text alignment: 0
  169. -- font id: 3
  170. -- text size: 12
  171. -- style flags: 0
  172. -- line height: 16
  173. -- part name: Telephone1
  174.  
  175.  
  176. -- part 30 (button)
  177. -- low flags: 00
  178. -- high flags: 8003
  179. -- rect: left=9 top=274 right=296 bottom=146
  180. -- title width / last selected line: 0
  181. -- icon id / first selected line: 0 / 0
  182. -- text alignment: 1
  183. -- font id: 0
  184. -- text size: 12
  185. -- style flags: 0
  186. -- line height: 16
  187. -- part name: Sort by Call District
  188. ----- HyperTalk script -----
  189. on mouseUp
  190.   sort by field "call district"
  191. end mouseUp
  192.  
  193.  
  194.  
  195. -- part 31 (button)
  196. -- low flags: 00
  197. -- high flags: 8003
  198. -- rect: left=113 top=247 right=269 bottom=199
  199. -- title width / last selected line: 0
  200. -- icon id / first selected line: 0 / 0
  201. -- text alignment: 1
  202. -- font id: 0
  203. -- text size: 12
  204. -- style flags: 0
  205. -- line height: 16
  206. -- part name: Sort by Call
  207. ----- HyperTalk script -----
  208. on mouseUp
  209.   sort by field "call"
  210. end mouseUp
  211.  
  212.  
  213.  
  214. -- part 32 (button)
  215. -- low flags: 00
  216. -- high flags: 8003
  217. -- rect: left=9 top=246 right=268 bottom=106
  218. -- title width / last selected line: 0
  219. -- icon id / first selected line: 0 / 0
  220. -- text alignment: 1
  221. -- font id: 0
  222. -- text size: 12
  223. -- style flags: 0
  224. -- line height: 16
  225. -- part name: Sort by Name
  226. ----- HyperTalk script -----
  227. on mouseUp
  228.   sort by last word of field "name"
  229. end mouseUp
  230.  
  231.  
  232.  
  233. -- part 33 (button)
  234. -- low flags: 00
  235. -- high flags: 8003
  236. -- rect: left=294 top=318 right=340 bottom=399
  237. -- title width / last selected line: 0
  238. -- icon id / first selected line: 0 / 0
  239. -- text alignment: 1
  240. -- font id: 0
  241. -- text size: 12
  242. -- style flags: 0
  243. -- line height: 16
  244. -- part name: Export Labels
  245. ----- HyperTalk script -----
  246. on mouseUp
  247.   sort by field "name"
  248.   sort by field "zip"
  249.   get shortname of this stack
  250.   put it & " labels" into fileName
  251.   ask "Export text to what file?" with fileName
  252.   if it is empty then exit mouseUp
  253.   put it into fileName
  254.   open file fileName
  255.   write "Name" & tab & "Address" & tab & "CityStateZip" & return to file fileName
  256.   go to first card
  257.   repeat for the number of cards
  258.     write quote & field "name" & ", " & field call & quote & tab & field "address" & tab & quote & field "city" & ", " & field "state" & space & field zip & quote & field "state" & return to file fileName
  259.     go to next card
  260.   end repeat
  261.   close file fileName
  262. end mouseUp
  263.  
  264.  
  265.  
  266. -- part 34 (field)
  267. -- low flags: 00
  268. -- high flags: 0000
  269. -- rect: left=85 top=162 right=179 bottom=200
  270. -- title width / last selected line: 0
  271. -- icon id / first selected line: 0 / 0
  272. -- text alignment: 0
  273. -- font id: 3
  274. -- text size: 12
  275. -- style flags: 0
  276. -- line height: 16
  277. -- part name: Telephone2
  278.  
  279.  
  280. -- part 27 (field)
  281. -- low flags: 00
  282. -- high flags: 4002
  283. -- rect: left=361 top=69 right=287 bottom=487
  284. -- title width / last selected line: 0
  285. -- icon id / first selected line: 0 / 0
  286. -- text alignment: 0
  287. -- font id: 3
  288. -- text size: 10
  289. -- style flags: 0
  290. -- line height: 13
  291. -- part name: member data
  292.  
  293.  
  294. -- part 35 (button)
  295. -- low flags: 00
  296. -- high flags: A003
  297. -- rect: left=31 top=212 right=240 bottom=79
  298. -- title width / last selected line: 0
  299. -- icon id / first selected line: 0 / 0
  300. -- text alignment: 1
  301. -- font id: 0
  302. -- text size: 12
  303. -- style flags: 0
  304. -- line height: 16
  305. -- part name: Find
  306. ----- HyperTalk script -----
  307. on mouseUp
  308.   doMenu "Find..."
  309.   set the loc of message to 6,315
  310. end mouseUp
  311.  
  312.  
  313.  
  314. -- part 36 (button)
  315. -- low flags: 00
  316. -- high flags: 8003
  317. -- rect: left=104 top=216 right=237 bottom=184
  318. -- title width / last selected line: 0
  319. -- icon id / first selected line: 0 / 0
  320. -- text alignment: 1
  321. -- font id: 0
  322. -- text size: 12
  323. -- style flags: 0
  324. -- line height: 16
  325. -- part name: New Entry
  326. ----- HyperTalk script -----
  327. on mouseUp
  328.   visual effect wipe left
  329.   go last card
  330.   visual effect scroll left
  331.   doMenu "New Card"
  332.   tabKey
  333. end mouseUp
  334.  
  335.  
  336.  
  337. -- part 37 (field)
  338. -- low flags: 00
  339. -- high flags: 0004
  340. -- rect: left=302 top=165 right=184 bottom=347
  341. -- title width / last selected line: 0
  342. -- icon id / first selected line: 0 / 0
  343. -- text alignment: 0
  344. -- font id: 0
  345. -- text size: 12
  346. -- style flags: 0
  347. -- line height: 16
  348. -- part name: MemberP
  349.  
  350.  
  351. -- part 39 (button)
  352. -- low flags: 00
  353. -- high flags: 0000
  354. -- rect: left=305 top=277 right=305 bottom=342
  355. -- title width / last selected line: 0
  356. -- icon id / first selected line: 1012 / 1012
  357. -- text alignment: 1
  358. -- font id: 0
  359. -- text size: 12
  360. -- style flags: 0
  361. -- line height: 16
  362. -- part name: Return
  363. ----- HyperTalk script -----
  364. on mouseUp
  365.   visual effect iris close
  366.   pop card
  367. end mouseUp
  368.  
  369.  
  370.  
  371. -- part 40 (button)
  372. -- low flags: 00
  373. -- high flags: 0000
  374. -- rect: left=398 top=25 right=47 bottom=470
  375. -- title width / last selected line: 0
  376. -- icon id / first selected line: 0 / 0
  377. -- text alignment: 1
  378. -- font id: 0
  379. -- text size: 12
  380. -- style flags: 0
  381. -- line height: 16
  382. -- part name: back to radio
  383. ----- HyperTalk script -----
  384. on mouseUp
  385.   go to card id 2983 of stack "Radio"
  386. end mouseUp
  387.  
  388.  
  389.  
  390.  
  391. -- part 42 (button)
  392. -- low flags: 00
  393. -- high flags: 8003
  394. -- rect: left=91 top=318 right=340 bottom=193
  395. -- title width / last selected line: 0
  396. -- icon id / first selected line: 0 / 0
  397. -- text alignment: 1
  398. -- font id: 0
  399. -- text size: 12
  400. -- style flags: 0
  401. -- line height: 16
  402. -- part name: Packet Export
  403. ----- HyperTalk script -----
  404. on mouseUp
  405.   set cursor to 4
  406.   put the short name of this stack & ".packet" into fileName
  407.   ask "Export text to what file?" with fileName
  408.   if it is empty then exit mouseUp
  409.   put it into fileName
  410.   open file fileName
  411.   go to first card
  412.   repeat for the number of cards
  413.     put field "call" into kall
  414.     if kall is empty or kall is "none" then
  415.       put space & space & space & space & space & space into kall -- 6 chars for no call
  416.     end if
  417.     if the charToNum of second char of kall >= 48 and second char of kall <= 57 then
  418.       put space after second char of kall
  419.       put space before first char of kall
  420.     else
  421.       put space after third char of kall
  422.     end if
  423.     if length of kall is 5 then
  424.       put space & space after kall --temporary 7 chars for kall
  425.     end if
  426.     if length of kall is 6 then
  427.       put space & space & space after kall --9 chars for kall
  428.     else
  429.       put space & space after kall --9 chars for kall and no call
  430.     end if
  431.     write kall to file fileName
  432.     put field "name" into name
  433.     put 1 into temp
  434.     repeat until temp is 0
  435.       get length of name
  436.       put 22 - it into temp -- 22 chars for name, 31 so far
  437.       put space after name
  438.     end repeat
  439.     write name to file fileName
  440.     put field "city" & ", " & field "state" into qth
  441.     put 1 into temp
  442.     repeat until temp is 0
  443.       get length of qth
  444.       put 23 - it into temp -- 23 chars for qth, 54 so far
  445.       put space after qth
  446.     end repeat
  447.     write qth to file fileName
  448.     put field "telephone1" into phone
  449.     put 1 into temp
  450.     repeat until temp is 0
  451.       get length of phone
  452.       put 14 - it into temp -- 14 chars for phone, 68 so far
  453.       put space after phone
  454.     end repeat
  455.     write phone to file fileName
  456.     put field "BBS" into bbs -- 6 chars for BBS, 74 total
  457.     if bbs is not empty then put "@" before bbs
  458.     write bbs & return to file fileName
  459.     go to next card
  460.   end repeat
  461.   close file fileName
  462.   set cursor to 1
  463. end mouseUp
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470. --Call
  471. --call district
  472. --name
  473. --address
  474. --city
  475. --state
  476. --zip
  477. --telephone1
  478. --telephone2
  479. --member data
  480. --MemberP
  481.  
  482.  
  483.  
  484.  
  485.  
  486. -- part 43 (field)
  487. -- low flags: 00
  488. -- high flags: 0002
  489. -- rect: left=75 top=185 right=202 bottom=153
  490. -- title width / last selected line: 0
  491. -- icon id / first selected line: 0 / 0
  492. -- text alignment: 0
  493. -- font id: 3
  494. -- text size: 12
  495. -- style flags: 0
  496. -- line height: 16
  497. -- part name: BBS
  498.  
  499.  
  500. -- part 45 (button)
  501. -- low flags: 00
  502. -- high flags: 8003
  503. -- rect: left=3 top=318 right=340 bottom=84
  504. -- title width / last selected line: 0
  505. -- icon id / first selected line: 0 / 0
  506. -- text alignment: 1
  507. -- font id: 0
  508. -- text size: 12
  509. -- style flags: 0
  510. -- line height: 16
  511. -- part name: Field fixer
  512. ----- HyperTalk script -----
  513. --because the import script encountering an empty field sometimes lets
  514. --an invisible tab or return character slip into the hc field, or the
  515. --user accidentally puts a return character into a text field,
  516. --when the hc database is exported it is all screwed up! So, this script
  517. --fixes up the hc database for export.
  518.  
  519. on mouseUp
  520.   set cursor to 4
  521.   put the name of this bkgnd into bakground
  522.   go to first card of bkgnd bakground
  523.   repeat for the number of cards
  524.     get the name of this bkgnd
  525.     if it is not bakground then exit repeat
  526.     repeat with i = 1 to the number of fields
  527.       get last char of field i
  528.       if it is tab then put empty into last char of field i
  529.       repeat while last char of field i is return
  530.         get last char of field i
  531.         if it is return then
  532.           put empty into last char of field i
  533.         end if
  534.       end repeat
  535.       repeat while offset(return,field i) is not 0
  536.         get offset(return,field i)
  537.         put space & "*" & space into char it of field i
  538.       end repeat
  539.     end repeat
  540.     go next card
  541.   end repeat
  542. end mouseUp
  543.  
  544.  
  545. -- part 46 (button)
  546. -- low flags: 00
  547. -- high flags: 8003
  548. -- rect: left=197 top=318 right=340 bottom=290
  549. -- title width / last selected line: 0
  550. -- icon id / first selected line: 0 / 0
  551. -- text alignment: 1
  552. -- font id: 0
  553. -- text size: 12
  554. -- style flags: 0
  555. -- line height: 16
  556. -- part name: Export Data
  557. ----- HyperTalk script -----
  558. on mouseUp
  559.   put the short name of this stack & ".text" into fileName
  560.   ask "Export text to what file?" with fileName
  561.   if it is empty then exit mouseUp
  562.   put it into fileName
  563.   open file fileName
  564.   set cursor to 4
  565.   put the name of this bkgnd into bakground
  566.   go to first card of bkgnd bakground
  567.   repeat for the number of cards
  568.     get the name of this bkgnd
  569.     if it is not bakground then exit repeat
  570.     repeat with i = 1 to the number of fields
  571.       write field i & tab to file fileName
  572.     end repeat
  573.     write return to file fileName
  574.     go to next card
  575.   end repeat
  576.   close file fileName
  577.   set cursor to 1
  578. end mouseUp
  579.  
  580.  
  581.  
  582. -- part 47 (button)
  583. -- low flags: 00
  584. -- high flags: 8003
  585. -- rect: left=404 top=318 right=340 bottom=493
  586. -- title width / last selected line: 0
  587. -- icon id / first selected line: 0 / 0
  588. -- text alignment: 1
  589. -- font id: 0
  590. -- text size: 12
  591. -- style flags: 0
  592. -- line height: 16
  593. -- part name: Import Data
  594. ----- HyperTalk script -----
  595. --to use this button, prepare at least as many HC background fields
  596. --as fields separated by tabs of your text data file
  597. --    by Ted Tripp, 4588 CR 523, Bayfield, CO 81122, 303-884-9029
  598. on mouseUp
  599.   ask "Import text from which file?"
  600.   if it is empty then exit mouseUp
  601.   put it into fileName
  602.   open file fileName
  603.   set cursor to 4
  604.   repeat
  605.     read from file fileName until return -- get first record
  606.     if it is empty then
  607.       doMenu "Delete Card"
  608.       close file fileName
  609.       exit mouseUp
  610.     end if
  611.     put it into data
  612.     repeat with i = 1 to the number of fields
  613.       put offset(tab,data) into num --gets first field (until tab)
  614.       if num is 0 then -- last field of record has no tab
  615.         put data into field i -- writes last field
  616.         delete last char of field i -- deletes return char
  617.         if first char of field i is quote and last char of field i is quote then --deletes quote marks
  618.           delete first char of field i
  619.           delete last char of field i
  620.         end if
  621.         exit repeat -- stops
  622.       end if
  623.       put char 1 to (num - 1) of data into field i -- writes first field
  624.       repeat while last char of field i is tab -- pesky ASCII 9!
  625.         delete last char of field i
  626.       end repeat
  627.       if first char of field i is quote and last char of field i is quote then --deletes quote marks
  628.         delete first char of field i
  629.         delete last char of field i
  630.       end if
  631.       delete char 1 to num of data -- gets rid of field
  632.     end repeat
  633.     doMenu "New Card"
  634.   end repeat
  635.   close file fileName
  636.   set cursor to 1
  637. end mouseUp
  638.  
  639.